/*    */ package net.sourceforge.appgen.generator;
/*    */ 
/*    */ import java.io.File;
/*    */ import net.sourceforge.appgen.model.Entity;
/*    */ import net.sourceforge.appgen.model.GenerationInformation;
/*    */ 
/*    */ public abstract class DirectoryGenerator extends OnceFileGenerator
/*    */ {
/*    */   public DirectoryGenerator(GenerationInformation generationInformation)
/*    */   {
/* 30 */     super(generationInformation);
/*    */   }
/*    */ 
/*    */   public File generate(Entity entity) throws Exception
/*    */   {
/* 35 */     File dir = getDirectory();
/*    */ 
/* 37 */     if (!dir.exists()) {
/* 38 */       dir.mkdirs();
/*    */     }
/*    */ 
/* 41 */     return dir;
/*    */   }
/*    */ 
/*    */   public File getFile(Entity entity)
/*    */   {
/* 46 */     return getDirectory();
/*    */   }
/*    */ 
/*    */   public String getTemplate()
/*    */   {
/* 51 */     return null;
/*    */   }
/*    */ }

/* Location:           C:\Users\lzl6066\Downloads\net.sourceforge.appgen_1.2.0\plugins\net.sourceforge.appgen_1.2.0.201002031718\
 * Qualified Name:     net.sourceforge.appgen.generator.DirectoryGenerator
 * JD-Core Version:    0.6.0
 */